/* 消息容器 */
.message-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

/* 消息基础样式 */
.message {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  min-width: 300px;
  max-width: 500px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 消息图标 */
.message-icon {
  margin-right: 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* 消息内容 */
.message-content {
  flex: 1;
  line-height: 1.4;
}

/* 成功消息 */
.message-success {
  background: rgba(103, 194, 58, 0.9);
  color: white;
  border: 1px solid rgba(103, 194, 58, 0.3);
}

.message-success .message-icon {
  color: white;
}

/* 错误消息 */
.message-error {
  background: rgba(245, 108, 108, 0.9);
  color: white;
  border: 1px solid rgba(245, 108, 108, 0.3);
}

.message-error .message-icon {
  color: white;
}

/* 警告消息 */
.message-warning {
  background: rgba(230, 162, 60, 0.9);
  color: white;
  border: 1px solid rgba(230, 162, 60, 0.3);
}

.message-warning .message-icon {
  color: white;
}

/* 信息消息 */
.message-info {
  background: rgba(80, 151, 255, 0.9);
  color: white;
  border: 1px solid rgba(80, 151, 255, 0.3);
}

.message-info .message-icon {
  color: white;
}

/* 进入动画 */
.message-enter {
  opacity: 1;
  transform: translateY(0);
}

/* 离开动画 */
.message-leave {
  opacity: 0;
  transform: translateY(-20px);
}

/* 初始状态 */
.message {
  opacity: 0;
  transform: translateY(-20px);
  animation: messageSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 滑入动画 */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 悬停效果 */
.message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .message {
    min-width: 280px;
    max-width: 90vw;
    margin: 0 16px 8px 16px;
  }
  
  .message-container {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}